package com.iqiyi.pps.epg.core.model.task;

/**
 * Created by karkarrotxu on 2015/12/4.
 */
public enum ProgramSimpleTaskType {
    NOTIFY_SNAP_START(11),
    NOTIFY_SNAP_STOP(12),
    NOTIFY_VOD_RECORD_START(16),
    NOTIFY_VOD_RECORD_END(17);
    private int typeIndex ;
    private ProgramSimpleTaskType(int index){
        typeIndex = index;
    }

    public int getTypeIndex(){
        return typeIndex;
    }
    public static ProgramSimpleTaskType getTypeByIndex(int typeIndex) {
        for (ProgramSimpleTaskType contentType : values()) {
            if (contentType.getTypeIndex() == typeIndex) {
                return contentType;
            }
        }
        return null;
    }
}
